package com.xuchaotong.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 311633
 * @version 1.0
 * @ClassName:
 * @Description:
 * @date 2017/11/7 14:28
 */
@SpringBootApplication
//@EnableEurekaClient
public class OrderServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderServiceApplication.class, args);
    }

    /*@Autowired
    private RestTemplate restTemplate;

    @RequestMapping("/hi")
    public String home() {
        return "Hi , I'm order-service";
    }


    @RequestMapping("/order")
    public String info() {
        return restTemplate.getForObject("http://localhost:8763/info", String.class) + ", order";
    }

    @Bean
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }

    @Bean
    public AlwaysSampler defaultSampler(){
        return new AlwaysSampler();
    }*/
}
